Page({
    data: {
        list: []
    },
    onLoad() {
        this.getNotices()
    },
    onShow() {

    },
    //调用公告列表接口
    async getNotices() {
        const res = await wx.http.get('/announcement')
        this.setData({
            list: res.data
        })
    },
})